Don't explicitly check for false. Most modules without params return an empty array...
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 7 May 2009 20:02:20 +0000 (20:02 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 7 May 2009 20:02:20 +0000 (20:02 +0000)
includes/api/ApiBase.php

index 4f86832..990b8e6 100644 (file)
@@ -272,7 +272,7 @@ abstract class ApiBase {
         */
        public function makeHelpMsgParameters() {
                $params = $this->getFinalParams();
-               if ($params !== false) {
+               if ( $params ) {
 
                        $paramsDescription = $this->getFinalParamDescription();
                        $msg = '';